From: Ian Campbell Date: Tue, 27 Sep 2011 17:39:15 +0000 (+0100) Subject: libxl: do not try to redo incoming migration on reboot of migrated domain X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~9858 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=062ef262f9dfea877b6e3551aadff9db0d3d0f13;p=xen.git libxl: do not try to redo incoming migration on reboot of migrated domain After a migration, reboot was trying to receive another incoming migration, instead of restarting the domain it already has. Signed-off-by: Ian Jackson Tested-by: Andreas Olsowski Committed-by: Ian Jackson --- diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index fb6497bf57..8b5b55b2dc 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -1516,6 +1516,11 @@ start: ret = libxl_domain_create_restore(ctx, &d_config, cb, &child_console_pid, &domid, restore_fd); + /* + * On subsequent reboot etc we should create the domain, not + * restore/migrate-receive it again. + */ + restore_file = NULL; }else{ ret = libxl_domain_create_new(ctx, &d_config, cb, &child_console_pid, &domid);